package com.example.singleton;

public class Singleton4 {

    private Singleton4(){

    }

    public static Singleton4 getInstance(){
        return InnerSingleton4.instance;
    }

    private static class InnerSingleton4{
        public static final Singleton4 instance = new Singleton4();
    }
}
